import 'package:bike_ride/common/mvvm/base_page.dart';
import 'package:bike_ride/model/order_detail/view_model/order_detail_vm.dart';
import 'package:flutter/material.dart';

///已完成订单详情页
class OrderDetailView extends BaseStatefulPage<OrderDetailViewModel> {
  /// order_id
  final Map<String,dynamic> arguments;
  const OrderDetailView({required this.arguments, super.key});

  @override
  OrderDetailViewState createState() => OrderDetailViewState();
}

class OrderDetailViewState
    extends BaseStatefulPageState<OrderDetailView, OrderDetailViewModel> {
  @override
  void initAttribute() {}

  @override
  void initObserver() {}

  @override
  OrderDetailViewModel viewBindingViewModel() {
    return OrderDetailViewModel()..viewState = this;
  }

  @override
  Widget appBuild(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('订单详情'),
        ),
        body: Center(
            child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
        )));
  }
}
